package com.zds;

import com.zds.config.ApplicationConfiger;
import com.zds.service.UserService;
import com.zds.transaction.service.AccountService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @className:ApplicationContextTest
 * @date: 2025/6/12 上午12:59
 * @description:
 */
public class ApplicationContextTest {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ApplicationConfiger.class);
       // UserService userService = context.getBean(UserService.class);
       //String re = userService.sayHello();
       //System.out.println(re);
        AccountService accountService = context.getBean(AccountService.class);
        accountService.transferMoney("lucy","tom",100);
        context.close();
    }
}
